package net.togogo.mapper;

import net.togogo.bean.Stu;

import java.util.List;
import java.util.Map;

public interface StuMapper {

    //insert
    void insert (Stu stu);

    //get
    List<Stu> getAll();

    //selectById
    Stu selectById(int id);

    //selectByName
    List<Stu> selectByName(String name);

    //selectByNameAndRole
    List<Stu> selectByNameAndRole(Map<String,Object> map);

    //deleteById
    void deleteById(int id);

    //update
    void update (Stu stu);

    //deleteByIDs
    void deleteByIDs(int[] ids);

    //deleteByListIDs
    void deleteByListIDs(List<Integer> ids);
}
